package com.pea.fow.main;

/**
 * @author liyinlong
 *com.pea.fow.main
 *RandomUtil.java
 * 2017年5月15日下午9:33:25
 */
public class RandomUtil {
	public static int randomSmallFist(){
		return (int)Math.random()*10;
	}
	public static int randomBigFist(){
		return (int)Math.random()*100;
	}
	public static int addSmallHealth(){
		return (int)Math.random()*5;
	}
	public static int addBigHealth(){
		return (int)Math.random()*10;
	}
	public static int FistO(){
		int m = (int) Math.random()*2;
		int n = 0;
		switch(m){
		case 0:
			n = randomSmallFist();
			break;
		case 1:
			n = randomBigFist();
			break;
		}
		return n;
	}
}
